//
//  YQPPThirdViewController.m
//  项目基础框架
//
//  Created by NetEase on 16/3/10.
//  Copyright © 2016年 NetEase-yangqian. All rights reserved.
//

#import "YQPPThirdViewController.h"

@interface YQPPThirdViewController ()

@property (nonatomic,weak) UIWebView *webView;

@end

@implementation YQPPThirdViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor clearColor];
    
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.frame];
    webView.backgroundColor = [UIColor clearColor];
    webView.scalesPageToFit = YES;
//    [self.view addSubview:webView];
    self.webView = webView;
    
    NSString *fileUrl = [[NSBundle mainBundle] pathForResource:@"webData" ofType:@"html"];
    NSString *content = [[NSString alloc] initWithContentsOfFile:fileUrl encoding:NSUTF8StringEncoding error:nil];
    
    [self.webView loadHTMLString:content baseURL:nil];
    
    //    self.imageview = [[UIImageView alloc] initWithFrame:self.view.frame];
    //    [self.view addSubview:self.imageview];
    //    NSData *data = [NSData dataWithContentsOfFile:@"https://img12.360buyimg.com/cms/g14/M02/0D/0A/rBEhVVIet00IAAAAAAAsayc4ZN8AACmggLv0doAACyD538.jpg"];
    //    //    [UIImage imageWithData:data];
    //    [self.imageview setImage:[UIImage imageWithData:data]];
    //
    
    //    NSLog(fileUrl);
    //    webView loadHTMLString: (nonnull NSString *) baseURL: <#(nullable NSURL *)#>
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}

@end
